Skip to content

Instantly share code, notes, and snippets.

@darlingm
darlingm / codex-resets.py
Created June 18, 2026 16:36
Temporary Codex CLI helper to view and use banked rate-limit reset credits before v0.142.0
#!/usr/bin/env python3
"""Temporary helper for Codex reset credits until CLI support is available."""
from __future__ import annotations
import argparse
import base64
import json
import os
import sys
@keeguon
keeguon / countries.json
Created April 5, 2012 11:11
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@asyraaf92
asyraaf92 / Chateau_5G_IMEI.md
Created February 11, 2026 07:03
MikroTik Chateau 5G ax Change IMEI

Changing IMEI on MikroTik Chateau 5G ax (Quectel RG650E-EU)

This guide documents the steps to change the IMEI on a MikroTik Chateau 5G ax router equipped with the Quectel RG650E-EU modem using AT commands via the RouterOS terminal.

Disclaimer: Changing an IMEI is illegal in some jurisdictions. This guide is for educational and recovery purposes only (e.g., restoring a lost IMEI after a firmware flash). Proceed at your own risk.

Prerequisites

  • Access to MikroTik WinBox or SSH.
  • The LTE interface is named lte1 (default).
  • A valid 15-digit IMEI number.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 22, 2026 18:10
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

This is a small example of a "magic code" in C. I simplified it. I tested it on onlinegdb.com.
It can be useful for the hard problems to solve in software engineering (embedded, porting without the source code, ...)
#include <stdio.h>
void set(int index, int value)
{
int tmp;
*(-index + 8 + &tmp) = value;
@iamwildtuna
iamwildtuna / gist:7772b7c84a11bf6e1385f23096a73a15
Last active June 22, 2026 18:04
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@k16shikano
k16shikano / SKILL.md
Last active June 22, 2026 18:02
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@adrianhajdin
adrianhajdin / Loader.jsx
Created January 20, 2023 10:50
Build and Deploy a Full Stack MERN AI Image Generation App & MidJourney & DALL E Clone
import React from 'react';
const Loader = () => (
<div role="status">
<svg aria-hidden="true" className="inline w-10 h-10 mr-2 text-gray-200 animate-spin fill-[#6469ff]" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" />
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwipeController : MonoBehaviour
{
public static bool tap, swipeLeft, swipeRight, swipeUp, swipeDown;
private bool isDraging = false;
private Vector2 startTouch, swipeDelta;
@AUAggy
AUAggy / free-claude-code-with-ollama.md
Created February 11, 2026 04:31
Running Claude Code locally with Ollama and open-source models as a free alternative to the Anthropic API

Running Claude Code Locally with Ollama and Open-Source Models as a Free Alternative to the Anthropic API

Claude Code's API costs add up fast for heavy users, often $50 to $200+/month on Opus 4.5/4.6. Ollama (v0.14.0+) now supports the Anthropic Messages API natively, which means Claude Code can run against local open-source models at zero cost, with no data leaving the machine.

This guide covers the full setup: installing Ollama and Claude Code, choosing a model that fits 16 GB of RAM, connecting the pieces, and understanding the real tradeoffs.


The Cost Problem